package com.taxshare.purchaser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.taxshare.mybatis.entity.BaseEntity;
import com.taxshare.purchaser.constant.TableConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author YANG
 * @ClassName: TPurchaserBusTicketPoolEntity
 * @Description:
 * @date 2021-04-12
 */
@Data
@ApiModel(description = "客运汽车票池")
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(TableConstant.T_PURCHASER_BUS_TICKET_POOL)
public class BusTicketPoolEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("uuid")
    private String uuid;

    @ApiModelProperty("发票类型：22")
    @TableField("invoice_type")
    private String invoiceType;

    @ApiModelProperty("消费类型")
    @TableField("consume_kind")
    private String consumeKind;

    @ApiModelProperty("发票代码")
    @TableField("invoice_code")
    private String invoiceCode;

    @ApiModelProperty("发票号码")
    @TableField("invoice_no")
    private String invoiceNo;

    @ApiModelProperty("乘车日期")
    @TableField("travel_date")
    private String travelDate;

    @ApiModelProperty("乘车时间")
    @TableField("travel_time")
    private String travelTime;

    @ApiModelProperty("乘车人姓名")
    @TableField("travel_name")
    private String travelName;

    @ApiModelProperty("出发站")
    @TableField("from_station")
    private String fromStation;

    @ApiModelProperty("到达站")
    @TableField("arrive_station")
    private String arriveStation;

    @ApiModelProperty("价税合计（大写）")
    @TableField("amount_big")
    private String amountBig;

    @ApiModelProperty("价税合计（小写）")
    @TableField("amount_small")
    private String amountSmall;

    @ApiModelProperty("影像ID")
    @TableField("image_id")
    private String imageId;

    @ApiModelProperty("报销状态 1 未报销 2 已报销")
    @TableField("reimbursement_status")
    private String reimbursementStatus = "1";

    @ApiModelProperty("责任人")
    @TableField("person_liable")
    private String personLiable;

    @ApiModelProperty("采集人")
    @TableField("collector")
    private String collector;

    @ApiModelProperty("记账科目")
    @TableField("booking_account")
    private String bookingAccount;

    @ApiModelProperty("被授权人")
    @TableField("licensee")
    private String licensee;

    @ApiModelProperty("责任人ID")
    @TableField("person_liable_id")
    private String personLiableId;

    @ApiModelProperty("采集人ID")
    @TableField("collector_id")
    private String collectorId;

    @ApiModelProperty("被授权人ID")
    @TableField("licensee_id")
    private String licenseeId;

    @ApiModelProperty("审批记录编号")
    @TableField("record_no")
    private String recordNo;

    @TableField("create_time_str")
    private String createTimeStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());


}